Skip to main content

Tip 7: Using Multiple Parameters Simultaneously

When using the img2img method to generate avatars, I found that the problem was that "the weight of text is higher than that of images", which resulted in generated images not resembling the original image. The iw parameter can only increase the weight of images up to 2 in V5, so I wondered if it was possible to further reduce the weight of text.

Then I tried using the s parameter and found that it improved a lot.

If the generated image still doesn't look like what you want, you can add another parameter --s 200 on top of --iw 2.

Note that when using two parameters at once, there should be no comma between them. After adding s parameter, I found out that it really improved a lot. Personally, I guess combining s and iw will weaken the weight of text.

S controls how stylized your generated image is. Simply put, lower values are more consistent with your text prompt description while higher values have stronger artistic effects but weaker correlation with your text prompt. So if your generated image still doesn't look right, try increasing this value - for example adjusting it to 500.

Through this case study, I want to tell everyone that using multiple parameters together may form a synergy effect and further enhance model capabilities. In future updates with new parameters available,it's worth considering whether they could be used together as well?